import React, { Component } from 'react'
import { Switch,Route, Redirect } from 'react-router-dom'
import AddUpdate from './add-update'
import Detail from './detail'
import Home from './home'
export default class index extends Component {
  render() {
    return (
      <Switch>
        <Route path='/product' component={Home} exact />
        <Route path='/product/addupdate' component={AddUpdate} />
        <Route path='/product/detail' component={Detail} />
        <Redirect to='/product' />
      </Switch>
    )
  }
}
